import request from '@/utils/request'

export default {
  //条件分页课程查询的方法
  getCourseList(page,limit,searchObj) {
    return request({
      url: `/eduservice/coursefront/getCourseFrontList/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  //查询所有分类的方法
  getAllSubject() {
    return request({
      url: '/eduservice/subject/getAllSubject',
      method: 'get'
    })
  },
  //课程详情的方法
  getCourseInfo(courseId) {
    return request({
      url: '/eduservice/coursefront/getFrontCourseInfo/'+courseId,
      method: 'get'
    })
  },

  //根据课程名字模糊查询
  /*selectLikeCourseInfo(title) {
    return request({
      url: '/eduservice/coursefront/getCourseByName/'+title,
      method: 'get'
    })
  },*/
}
